package vip.meeet.start;

import cn.freemethod.bean.AppBean;
import cn.freemethod.bean.DubboConfigBean;
import cn.freemethod.config.AppConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.AbstractApplicationContext;

public class AnnotationConfigStart {
	
	public static void main(String[] args) {
		AbstractApplicationContext  context = new AnnotationConfigApplicationContext(AppConfig.class);
		DubboConfigBean dubboConfigBean = context.getBean(DubboConfigBean.class);
		System.out.println(dubboConfigBean);
		AppBean appBean = context.getBean(AppBean.class);
		System.out.println(appBean);
        context.close();
	}

}
